package hichecker.ui.general_views.container_panel.navigation;

import javax.swing.AbstractAction;
import javax.swing.BorderFactory;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

public class NavigationPopup extends JPopupMenu {
	public NavigationPopup(AbstractAction[] actions) {
		super();
		for (AbstractAction action : actions) {
			add(createMenuItem(action));
		}
	}
	
	private JMenuItem createMenuItem(AbstractAction action) {
		JMenuItem item = new JMenuItem(action);
		item.setBorder(BorderFactory.createEmptyBorder());
		return item;
	}
}
